package com.wj.dubbo.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class WsAmountDesUtil {

	public static final String KEY = "kxdwelfareshopkey";

	private static final Logger log = LoggerFactory.getLogger(WsAmountDesUtil.class);

	public static String encrypt(String data) {
		String result = null;
		try {
			result = DesUtil.encrypt(data, KEY);
		} catch (Exception e) {
			log.error("金额加密失败", e);
		}
		return result;
	}

	public static String decrypt(String data) {
		String result = null;
		
		try {
			result = DesUtil.decrypt(data, KEY);
		} catch (Exception e) {
			log.error("金额解密失败", e);
		}
		return result;
	}
}
